<?php
/**
 * Created by PhpStorm.
 * User: pc
 * Date: 2020/1/11
 * Time: 20:56
 */

namespace app\api\controller\v1;

use think\Db;
use think\controller;
use think\Request;
use app\api\controller\behavior\Cors as header;


class Banner
{
    static function index(){
        $request = Request::instance();
        $res = $request->param();
        $h = new header();
        $h->appInit($res);

        $ql = Db::table("banner")->order("id")->select();
//        print_r($res);
//        print_r($ql);
//        $content = mb_convert_encoding( $ql, 'UTF-8', 'UTF-8,GBK,GB2312,BIG5' );
        return $ql;
            }
    }
